import { request } from "@/utils/axios"

/**
 * 获取地区 
 * http://127.0.0.1:8080/information/getArea?pid=147
 */
export function getAreaApi(pid = 1) {
    return request(
        {
            url: "/information/getArea",
            method: "GET",
            params: {
                pid: pid ?? undefined
            }
        }
    );
}


/**
 * 验证码
 */
export function GetCodeApi(params) {
    return request(
        {
            url: 'information/getCode',
            method: "GET",
            params
        }
    );
}


/**
 * 获取基本信息
 */
export function GetInformationApi() {
    return request(
        {
            url: "/information/getInformation",
            method: "GET",
        }
    );
}

/**
 * 查询上级
 */

export function getManagerApi(pid = "") {
    return request(
        {
            url: 'information/getManager',
            method: "GET",
            data: {},
            params: {
                pid: pid
            },
        }
    );
}



/**
 * 获取指导老师列表  只含有id 名字  用于为学生绑定指导老师  不分页
 */

export function GetBindingTeacherApi() {
    return request(
        {
            url: 'information/getBindingTeacher',
            method: "GET",
        }
    );
}